package cn.jaye.fabric.infrastructure.mybatis.impl;

import cn.jaye.fabric.domain.model.Guess;
import cn.jaye.fabric.infrastructure.mybatis.impl.mapper.GuessMapper;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Jaye
 * @create 2018-06-04 14:41
 */
@Repository
public class GuessRepositoryImpl extends ServiceImpl<GuessMapper, Guess> {

    @Autowired
    private GuessMapper guessMapper;

    public JSONArray guessHistory(String userName) {
        return guessMapper.guessHistory(userName);
    }
}
